/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * DoctorPanel.java
 *
 * Created on May 8, 2011, 12:45:06 AM
 */
package appshed.UI;

import java.awt.CardLayout;

/**
 *
 * @author Nithin
 */
public class DoctorPanel extends javax.swing.JPanel {

    /** Creates new form DoctorPanel */
    public DoctorPanel() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();
        appointmentTab = new javax.swing.JPanel();
        appointmentMonthlyViewPanel1 = new appshed.UI.AppointmentMonthlyViewPanel();
        appointmentWeeklyViewPanel1 = new appshed.UI.AppointmentWeeklyViewPanel();
        doctorInfoTab = new javax.swing.JPanel();
        doctorInfoPanel1 = new appshed.UI.DoctorInfoPanel();

        appointmentTab.setLayout(new java.awt.CardLayout());

        appointmentMonthlyViewPanel1.selectDateButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                //System.out.println("do save stuff here");
                CardLayout cl = (CardLayout)(appointmentTab.getLayout());
                cl.next(appointmentTab);
            }
        });
        appointmentTab.add(appointmentMonthlyViewPanel1, "card2");
        appointmentTab.add(appointmentWeeklyViewPanel1, "card3");

        jTabbedPane1.addTab("Appointments", appointmentTab);

        javax.swing.GroupLayout doctorInfoTabLayout = new javax.swing.GroupLayout(doctorInfoTab);
        doctorInfoTab.setLayout(doctorInfoTabLayout);
        doctorInfoTabLayout.setHorizontalGroup(
            doctorInfoTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(doctorInfoTabLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(doctorInfoPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(123, Short.MAX_VALUE))
        );
        doctorInfoTabLayout.setVerticalGroup(
            doctorInfoTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(doctorInfoTabLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(doctorInfoPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(234, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Doctor Info", doctorInfoTab);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 616, Short.MAX_VALUE)
                .addGap(20, 20, 20))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 432, Short.MAX_VALUE)
                .addGap(22, 22, 22))
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private appshed.UI.AppointmentMonthlyViewPanel appointmentMonthlyViewPanel1;
    private javax.swing.JPanel appointmentTab;
    private appshed.UI.AppointmentWeeklyViewPanel appointmentWeeklyViewPanel1;
    private appshed.UI.DoctorInfoPanel doctorInfoPanel1;
    private javax.swing.JPanel doctorInfoTab;
    private javax.swing.JTabbedPane jTabbedPane1;
    // End of variables declaration//GEN-END:variables
}
